package lbim.client.ui;

import java.util.Hashtable;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;

import de.enough.polish.ui.Form;
import de.enough.polish.ui.MessageItem;
import de.enough.polish.util.Locale;
import javax.microedition.lcdui.CommandListener;

/**
 *
 * @author tharindu
 */
public class About extends Form implements CommandListener {

    private MainUI ui_;
    private Hashtable commands_;
    
    public About() {
        //#style messagescreen
        super(Locale.get("about.title")); //[LOCALE]

        //#style message
        MessageItem messageitem = new MessageItem("\nLocate IM 1.0", " Tharindu\n Nirojan\n Ishara\n Withuran");//[LOCALE]


        ui_ = MainUI.getInstance();
        commands_ = ui_.getCommands();

        try {
            setCommandListener(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
        addCommand((Command) commands_.get(new Integer(MainUI.CMD_OK)));

        this.append(messageitem);

    }

    public void commandAction(Command c, Displayable d) {
        MainUI.hsenidCommand(c, d);
    }
}
